import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'

import user from './module/user'
import app from './module/app'
import menus from './module/menus'
import userInfo from './module/userInfo'
import userLevel from './module/userLevel'
import order from './module/order'
import media from './module/media'
import goodSelect from './module/goodSelect'
import moren from './module/moren'
import shopping from './module/shopping'
import fresh from './module/fresh'
import kefu from './module/kefu'
import integralOrder from './module/integralOrder'
import { common } from '../utils/common.js'
//import mobildConfig from './module/mobildConfig'
Vue.use(Vuex)
// 持久化储存
// const vuexLocal = new VuexPersistence({
//     storage: window.localStorage,
//
// })

export default new Vuex.Store({
    state: {
        pagesetlist:[],
        //基础数据
        baseData: {

        },
        //当表单配置拖动时，设置为true，用于不允许加入其他组
        draggableStatus: false,
        pushpage: true,
        pagesetindex: 0,
        //表单配置
        formconfig: {
            title: '可视化uniapp',
            float: 'center',
            position: 'right',
            size: 'default',
            pic: '',
            bgcolor: '',
            bgimglocation: '',
            bgimgsize: '',
            bgimgrepeate: '',
            hidden: false,
            style: {
                background: '#ffffff',
                color: '#17233d',
                padding: '15px'
            },
            themeSelected: 0, //主题
            //后台显示的字段
            showfield: [],
            //显示字段列表
            showfieldlist: [],
            openApi: false,
            api: ''
        },
        //设计表单数据
        dataconfig: [],
        //当前修改的列
        curformdata: {
            config:{
                bgimage:'',animation:''
            }
        },
        //用户表单填写数据
        formdata: {

        },
        copytext: '',
        copydata: {

        },
        //当前显示窗口
        curModel: 'pca',
        //联动事件
        linkageEvent: [],
        //表单的显示状态
        formstatus: true,
        myeditact: 0,
        //预览状态
        previewStatus: false,
        //预览过程中存储的数据
        formValidate: {},
        //基础组件
        baselist: [
            {
                id: parseInt(Math.random() * 1000),
                name: '宫格组件',
                type: 1,
                component: 'cf-gongge',
                list:[],
                config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                     "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "islinerbg": false,
                    "linerbg": '',
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "isround": 1,
                    "imgleft": true,
                    "elementdata": [
                        {
                            "name": "环球美食",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "imgtype": 1,
                            "iconcolor": "black",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/fd2f58bb7251c6e5df08e8d05a23463b.png",
                            "url": "/pages/users/user_invoice_list/index"
                        },
                        {
                            "name": "个护美妆",
                            "imgtype": 1,
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "iconcolor": "black",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/879d742839d0047baafbb465f9b3ad98.png",
                            "url": "/pages/users/user_integral/index"
                        },
                        {
                            "name": "营养保健",
                            "imgtype": 1,
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "iconcolor": "black",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/28c860417000b58346fbbb935c6243c1.png",
                            "url": "/pages/customer_list/chat"
                        },
                        {
                            "name": "家居厨卫",
                            "imgtype": 1,
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "iconcolor": "black",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/d5d01475c210e46c357cf3ffaea47535.png",
                            "url": "/pages/users/user_coupon/index"
                        },
                        {
                            "name": "速食生鲜",
                            "imgtype": 1,
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "iconcolor": "black",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/0fc1b1545ee701a807c4d7794cc0ec45.png",
                            "url": "/pages/users/user_goods_collection/index"
                        },
                        {
                            "name": "爱护环境",
                            "imgtype": 1,
                            "iconcolor": "black",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/4e227336b9eeb33a2bb3c4b5f912c1af.png",
                            "url": "/pages/users/user_address_list/index"
                        },
                        {
                            "name": "母婴用品",
                            "imgtype": 1,
                            "iconcolor": "black",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/a0e089eae12fefc254284f6bad3b8a03.png",
                            "url": "/pages/users/user_money/index"
                        }
                    ]
                }
            },

            { id: parseInt(Math.random() * 1000),expand:true, name: "图文菜单", type: 1,
                list:[],
                component: 'cf-tuwen',
                config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "islinerbg": false,
                    "linerbg": '',
                    "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid",
                    "borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                     "bgcolorchoose": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "tuwidth": 1,
                    "showimg": 1,
                    "imgtype": 1,
                    "imgleft": true,
                    "elementdata": [
                        {
                            "name": "菜单一",
                            "imgtype": 1,
                            "iconcolor": "black",
                            "iconname": "home",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "url": "",
                            "pic": "https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg",
                            "desc": "菜单一内容"
                        },
                        {
                            "name": "菜单二",
                            "imgtype": 1,
                            "iconcolor": "black",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "iconname": "home",
                            "url": "",
                            "pic": "https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg",
                            "desc": "菜单二内容"
                        }
                    ]
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "图片轮播", type: 1, component: 'cf-banner', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "imgheight": 150,
                    "showtitle": 2,
                    "datetype": 1,
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "bannerstyle": 2,
                    "bannerpointstyle": 4,
                    "bannerpointpos": '',
                    "imgleft": true,
                     "elementdata": [{
                        "lable": "",
                        "myname": "",
                        "myurl": "",
                        "evtform": {},
                        "apidata": "",
                        "myremark": "",
                        "event": "",
                        "title": "昨夜星辰昨夜风，画楼西畔桂堂东",
                        "image": "https://shitangsys.cntdh.net//uploads/store/comment/20221206/5f27951f28c8838159472b82bb7c4da1.jpg"
                    }, {
                        "lable": "",
                        "myname": "",
                        "myurl": "",
                        "evtform": {},
                        "apidata": "",
                        "myremark": "",
                        "event": "",
                        "title": "身无彩凤双飞翼，心有灵犀一点通",
                        "image": "https://shitangsys.cntdh.net//uploads/store/comment/20221206/211d58011e79a5c892462187cd9b6d95.jpg"
                    }, {
                        "lable": "",
                        "myname": "",
                        "myurl": "",
                        "evtform": {},
                        "apidata": "",
                        "myremark": "",
                        "event": "",
                        "title": "谁念西风独自凉，萧萧黄叶闭疏窗",
                        "image": "https://shitangsys.cntdh.net//uploads/store/comment/20221206/e04983c8e9aa6e44f09a7937997fec6f.jpg"
                    }]
                } },

            { id: parseInt(Math.random() * 1000),expand:true, name: "文本文字",
                type: 1,
                component: 'cf-text', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "fontsize": 0,
                    "fontcolor": "",
                    "animation": "",
                    "islinerbg": false,
                    "linerbg": '',
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 0,
                    "showtitle": 1,
                    "datetype": 1,
                    "myname": "",
                    "myurl": "",
                    "evtform": {} ,
                    "apidata": "",
                    "myremark": "",
                    "event": "",
                    "bgcolorchoose": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "content": "一段文字",
                    "imgleft": true,
                    "contentindent": "1"
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "头像组件", type: 1, component: 'cf-touxiang', config:
                    {
                        "youwaidistance": 0,
                        "shangwaidistance": 5,
                        "xiawaidistance": 5,
                        "zuowaidistance": 0,
                        "youneidistance": 5,
                        "shangneidistance": 5,
                        "xianeidistance": 5,
                        "zuoneidistance": 5,
                        "currentjin": 75,
                        "gongtype": 4,
                        "fontsize": 0,
                        "animation": "",
                        "myname": "",
                        "myurl": "",
                        "evtform": {} ,
                        "apidata": "",
                        "myremark": "",
                        "event": "",
                        "shangzuoround": 10,
                        "shangyouround": 10,
                        "xiayouround": 10,
                        "xiazuoround": 10,
                        "bordercolor": "#000",
                        "bordersize": 2,
                        "lineheight": 1,
                        "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                        "linecolor": "#aaa",
                        "shadowcolor": "#d1d1d1",
                        "horshadow": 0,
                        "expandshadow": 0,
                        "vershadow": 1,
                        "setfit": 1,
                        "elementdata": [{
                            'pic': 'https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg'
                        }, {
                            'pic': 'https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg'
                            },
                            {
                                'pic': 'https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg'
                            },
                            {
                                'pic': 'https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg'
                            }
                        ],
                        "mohushadow": 3,
                        "shangewidth": 0,
                        "showtitle": 1,
                        "datetype": 1,
                        "title": "标题",
                        "bgcolorchoose": "",
                        "zujinshow": 1,
                        "setdan": 1,
                        "isround": 1,
                        "imgleft": true,
                        "isavatargroup": false,
                        "iconfontsize": 23,
                        "pic": "https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",
                        "imgtype": 1,
                        "url": ""
                    } },

            { id: parseInt(Math.random() * 1000),expand:true, name: "图标组件", type: 1, component: 'cf-tubiao', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                     "fontsize": 0,
                    "fontcolor": "",
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "islinerbg": false,
                    "linerbg": '',
                    "mohushadow": 3,
                    "shangewidth": 0,
                    "showtitle": 1,
                    "myname": "",
                    "myurl": "",
                    "evtform": {} ,
                    "apidata": "",
                    "myremark": "",
                    "event": "",
                    "datetype": 1,
                    "bgcolorchoose": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "iconfontsize": 23,
                    "url": "",
                    "iconname": "home",
                    "iconcolor": ""
                } },

            { id: parseInt(Math.random() * 1000),expand:true, name: "图片组件", type: 1, component: 'cf-picture', config:
                    {
                        "youwaidistance": 0,
                        "shangwaidistance": 5,
                        "xiawaidistance": 5,
                        "zuowaidistance": 0,
                        "youneidistance": 5,
                        "shangneidistance": 5,
                        "xianeidistance": 5,
                        "zuoneidistance": 5,
                        "currentjin": 75,
                        "gongtype": 4,
                        "fontsize": 0,
                        "animation": "",
                        "myname": "",
                        "myurl": "",
                        "evtform": {} ,
                        "apidata": "",
                        "myremark": "",
                        "event": "",
                        "shangzuoround": 10,
                        "shangyouround": 10,
                        "xiayouround": 10,
                        "xiazuoround": 10,
                        "bordercolor": "#000",
                        "bordersize": 2,
                        "lineheight": 1,
                        "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                        "linecolor": "#aaa",
                        "shadowcolor": "#d1d1d1",
                        "horshadow": 0,
                        "expandshadow": 0,
                        "vershadow": 1,
                        "setfit": 1,
                        "mohushadow": 3,
                        "shangewidth": 100,
                        "showtitle": 1,
                        "datetype": 1,
                        "title": "标题",
                        "bgcolorchoose": "",
                        "zujinshow": 1,
                        "setdan": 1,
                        "imgleft": true,
                        "duiqitype": "center",
                        "pic": "https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",
                        "imgsize": 310
                    } },

            { id: parseInt(Math.random() * 1000),expand:true, name: "标签组件", type: 1, component: 'cf-tagzujian', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                     "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "ismylou": 2,
                    "bordersize": 2,
                    "lineheight": 1,
                    "ismylousize": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "bgcolor": "red",
                     "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 0,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "myname": "",
                    "myurl": "",
                    "evtform": {} ,
                    "apidata": "",
                    "myremark": "",
                    "event": "",
                    "bgcolorchoose": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "tagname": "标签一",
                    "padd": "",
                    "tagcolor": ""
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "进度条组件", type: 1, component: 'cf-jindu', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                     "imgleft": true
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "辅助线段", type: 1, component: 'cf-fuzhuline', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": "2",
                    "lineborderstyle": "dashed",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "视频组件", type: 1, component: 'cf-video', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "音频组件", type: 1, component: 'cf-audio', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "搜索组件", type: 1, component: 'cf-search', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "pic": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "searchtip": "请搜索商品、视频、文章",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "myname": "",
                    "myurl": "",
                    "evtform": {} ,
                    "apidata": "",
                    "myremark": "",
                    "event": "",
                    "imgleft": true,
                    "setnei": true,
                    "bakefix": "city",
                    "iconname": "locationfill",
                    "iconcolor": "green"
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "顶部标题", type: 1, component: 'cf-toptitle', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                    "islinerbg": false,
                    "fontsize": 0,
                    "animation": "",
                    "linerbg": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "setback": 1,
                    "contentcolor": "black"
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "普通标题", type: 1, component: 'cf-putongtitle',
                config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "showicon": 1,
                    "titlebordertitle": 1,
                    "iconname": "home",
                    "morecontent": "",
                    "showmore": 1,
                    "titlebold": 1,
                    "iconcolor": "black"
                }},
            { id: parseInt(Math.random() * 1000),expand:true, name: "底部按钮", type: 1, component: 'cf-dibubtn', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "islinerbg": false,
                    "linerbg": '',
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                    "fontsize": 0,
                    "animation": "",

                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "elementdata": [
                        {
                            "name": "首页",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "imgtype": 2,
                            "iconcolor": "black",
                            "iconname": "home",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/d5d01475c210e46c357cf3ffaea47535.png",
                            "url": "",
                            "image": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/d5d01475c210e46c357cf3ffaea47535.png"
                        },
                        {
                            "name": "分类",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "imgtype": 2,
                            "iconcolor": "blue",
                            "iconname": "sort",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/28c860417000b58346fbbb935c6243c1.png",
                            "url": ""
                        },
                        {
                            "name": "购物车",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "myremark": "",
                            "event": "",
                            "imgtype": 2,
                            "iconcolor": "grey",
                            "iconname": "cart",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/879d742839d0047baafbb465f9b3ad98.png",
                            "url": ""
                        },
                        {
                            "name": "我的",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "imgtype": 2,
                            "iconcolor": "red",
                            "iconname": "my",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/d5d01475c210e46c357cf3ffaea47535.png",
                            "url": ""
                        }
                    ]
                } },
       /*      { id: parseInt(Math.random() * 1000),expand:true, name: "悬浮菜单", type: 1, component: 'cf-xunfumenu', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                     "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "searchtip": "请搜索商品、视频、文章",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "content": "uni-app 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。",
                    "showlocation": "youxia",
                    "shangxiamove": "100",
                    "zuoyoumove": "60",
                    "imgleft": true,
                    "elementdata": [
                        {
                            "name": "",
                            "imgtype": 2,
                            "iconname": "home",
                            "iconcolor": "black",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/fd2f58bb7251c6e5df08e8d05a23463b.png",
                            "url": ""
                        },
                        {
                            "name": "",
                            "imgtype": 1,
                            "iconname": "home",
                            "iconcolor": "black",
                            "pic": "https://shitangsys.cntdh.net//uploads/store/comment/20220426/fd2f58bb7251c6e5df08e8d05a23463b.png",
                            "url": ""
                        }
                    ]
                } },
            */

            { id: parseInt(Math.random() * 1000),expand:true, name: "通知栏", type: 1, component: 'cf-notice', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "content": "uni-app 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。",
                    "imgleft": true,
                    "elementdata": [
                        {
                            "name": "一键生成代码"
                        },
                        {
                            "name": "一键复制代码"
                        },
                        {
                            "name": "可视化uniapp"
                        },
                        {
                            "name": "自动拖拽布局"
                        }
                    ],
                    "noticecolor": "#E62227"
                } },

        ],
        //高级组件
        seniorlist: [
            { id: parseInt(Math.random() * 1000),expand:true, name: "单行输入", type: 2, component: 'cf-onetext', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                     "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "inputtype": "text",
                    "iconname": "home",
                    "placeholdertip": "请输入提示信息",
                    "pic": "",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "titlenextline": 2,
                    "smallheight": 2,
                    "bottomborder": 2
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "多行输入", type: 2, component: 'cf-manytext', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "titlenextline": 2,
                    "smallheight": 2,
                    "bottomborder": 2
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "单选框", type: 2, component: 'cf-radio', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "elementdata": [{
                        'name': '单选一',
                        'choose': '1',
                        'value': '1'
                    },
                        {
                            'name': '单选二',
                            'choose': '0',
                            'value': '2'
                        },
                        {
                            'name': '单选三',
                            'choose': '0',
                            'value': '3'
                        }
                    ],
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "titlenextline": 2,
                    "smallheight": 2,
                    "bottomborder": 2
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "复选框", type: 2, component: 'cf-checkbox', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "elementdata": [{
                        'name': '复选一',
                        'choose': '1',
                        'value': '1'
                    },
                        {
                            'name': '复选二',
                            'choose': '0',
                            'value': '2'
                        },
                        {
                            'name': '复选三',
                            'choose': '0',
                            'value': '3'
                        }
                    ],
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "titlenextline": 2,
                    "smallheight": 2,
                    "bottomborder": 2
                }  },

            { id: parseInt(Math.random() * 1000),expand:true, name: "下拉选择", type: 2, component: 'cf-select', config: {
    "youwaidistance": 0,
        "shangwaidistance": 5,
        "xiawaidistance": 5,
        "zuowaidistance": 0,
        "youneidistance": 5,
        "shangneidistance": 5,
        "xianeidistance": 5,
        "zuoneidistance": 5,
        "currentjin": 75,
        "gongtype": 4,
                           "fontsize": 0,
                    "animation": "",
        "shangzuoround": 10,
        "shangyouround": 10,
        "xiayouround": 10,
        "xiazuoround": 10,
        "bordercolor": "#000",
        "bordersize": 2,
        "lineheight": 1,
        "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
        "linecolor": "#aaa",
        "shadowcolor": "#d1d1d1",
        "horshadow": 0,
        "expandshadow": 0,
        "vershadow": 1,
        "setfit": 1,
        "mohushadow": 3,
        "shangewidth": 100,
        "showtitle": 1,
        "datetype": 1,
        "title": "标题",
        "placeholdertip": "请选择",
        "elementdata": [
            {
        'name': '选项一',
        'choose': '1',
        'value': '1'
    },
        {
            'name': '选项二',
            'choose': '0',
            'value': '2'
        },
        {
            'name': '选项三',
            'choose': '0',
            'value': '2'
        }
    ],
        "bgcolorchoose": "#ffffff",
        "zujinshow": 1,
        "setdan": 1,
        "imgleft": true,
        "titlenextline": 2,
        "smallheight": 2,
        "bottomborder": 2
} },
            { id: parseInt(Math.random() * 1000),expand:true, name: "开关", type: 2, component: 'cf-switch', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "日期时间", type: 2, component: 'cf-datetime', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": "1",
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "titlenextline": 2,
                    "bottomborder": 2
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "图片上传", type: 2, component: 'cf-uploadimg', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "imgcount": "4"
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "评分控件", type: 2, component: 'cf-pingfen', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "imgleft": true,
                    "pingval": 2,
                    "pingcount": 5
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "滑块控件", type: 2, component: 'cf-sliderkuai', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#1EB33A",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "searchtip": "请搜索商品、视频、文章",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "content": "uni-app 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。",
                    "imgleft": true,
                    "huavalue": "35"
                } },
            { id: parseInt(Math.random() * 1000),expand:true, name: "按钮", type: 2, component: 'cf-button', config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "islinerbg": false,
                    "linerbg": '',
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                                       "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "ismylou": 2,
                    "bgcolor": "green",
                    "ismylousize": 2,
                    "imgleft": true,
                    "elementdata": [
                        {
                            "btnname": "按钮1",
                            "color": "red",
                            "url": "",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "islou": "",
                            "isblock": "1",
                            "imgtype": 1,
                            "iconname": "home",
                            "iconcolor": "black",
                            "background": "green"
                        },
                        {
                            "btnname": "按钮2",
                            "color": "red",
                            "islou": "",
                            "url": "",
                            "myname": "",
                            "myurl": "",
                            "evtform": {} ,
                            "apidata": "",
                            "myremark": "",
                            "event": "",
                            "isblock": "1",
                            "imgtype": 1,
                            "iconname": "home",
                            "iconcolor": "black",
                            "background": "green"
                        }
                    ],
                    "isround": "round",
                    "sizetype": "text-df",
                    "neitype": "padding-sm",
                    "duiqitype": "start",
                    "isblock": 1,
                    "islou": 2
                } },
        ],
        //布局组件
        layoutlist: [
            {
                id: parseInt(Math.random() * 1000),
                name: "FLEX布局",
                type: 3,
                expand:true,
                component: 'cf-box',
                config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "islinerbg": false,
                    "linerbg": '',
                    "gongtype": 4,
                    "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "bgcolorchoose": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "width": 330,
                    "height": 100,
                    "bgimage":"",
                    "iswrap": 1,
                    "isscroll": 3,
                     "imgleft": true,
                    "setnei": true
                },
                list: []
            },
            {
                id: parseInt(Math.random() * 1000),
                name: "表单容器",
                type: 3,
                component: 'cf-card',
                config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "islinerbg": false,
                    "linerbg": '',
                    "gongtype": 4,
                    "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "bgcolorchoose": "",
                    "bgimage": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "width": 330,
                    "height": 100,
                    "iswrap": 1,
                    "isscroll": 3,
                    "imgleft": true,
                    "setnei": true
                },
                list: []
            },
            {
                id: parseInt(Math.random() * 1000),
                name: "弹窗容器",
                type: 3,
                component: 'cf-model',
                config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "islinerbg": false,
                    "linerbg": '',
                    "gongtype": 4,
                    "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid","borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "searchtip": "请搜索商品、视频、文章",
                    "bgcolorchoose": "",
                    "bgimage": "",
                    "zujinshow": 1,
                    "setdan": 1,
                    "width": 330,
                    "height": 100,
                    "iswrap": 1,
                    "isscroll": 3,
                    "imgleft": true,
                    "setnei": true
                },
                list: []
            },
            { id: parseInt(Math.random() * 1000),
                expand:true, name: "选项卡布局", type: 1, component:'cf-tabchange',
                "list":[
                    { id: parseInt(Math.random() * 1000),expand:true, tabname: "选项一","iconname": "",value:"1", list: [], config: { label: '标签1' }, },
                    { id: parseInt(Math.random() * 1000),expand:true, tabname: "选项二","iconname": "",value:"2", list: [], config: { label: '标签1' }, },
                    { id: parseInt(Math.random() * 1000),expand:true, tabname: "选项三","iconname": "",value:"3", list: [], config: { label: '标签1' }, }
                ],
                config: {
                    "youwaidistance": 0,
                    "shangwaidistance": 5,
                    "xiawaidistance": 5,
                    "zuowaidistance": 0,
                    "youneidistance": 5,
                    "shangneidistance": 5,
                    "xianeidistance": 5,
                    "zuoneidistance": 5,
                    "currentjin": 75,
                    "gongtype": 4,
                    "fontsize": 0,
                    "animation": "",
                    "shangzuoround": 10,
                    "shangyouround": 10,
                    "xiayouround": 10,
                    "xiazuoround": 10,
                    "bordercolor": "#000",
                    "bordersize": 2,
                    "lineheight": 1,
                    "borderstyle": "solid",
                    "borderlocation": "border","setborder": false,"setline": "",
                    "linecolor": "#aaa",
                    "shadowcolor": "#d1d1d1",
                    "horshadow": 0,
                    "expandshadow": 0,
                    "vershadow": 1,
                    "setfit": 1,
                    "mohushadow": 3,
                    "shangewidth": 100,
                    "showtitle": 1,
                    "datetype": 1,
                    "title": "标题",
                    "placeholdertip": "请输入提示信息",
                    "searchtip": "请搜索商品、视频、文章",
                    "bgcolorchoose": "#ffffff",
                    "zujinshow": 1,
                    "setdan": 1,
                    "content": "uni-app 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。",
                    "imgleft": true,
                    "quyuheight": 150,
                    "showscroll": true,

                    "elementdata": [
                        {
                            "tabname": "选项一",
                            "tabval": "1",
                            "iconname": "",
                            "choose": 0
                        },
                        {
                            "tabname": "选项二",
                            "tabval": "2",
                            "iconname": "",
                            "choose": 0
                        },
                        {
                            "tabname": "选项三",
                            "tabval": "3",
                            "iconname": "",
                            "choose": 0
                        }
                    ],

                    "duiqitype": "around",
                    "tabbold": 1,
                    "choosecolor": "blue"
                } }

        ]
        //
    },
    mutations: {
        //
    },
    actions: {
        UpdateDataConfig(context) {
            var newdata = common.updatedata(context.state.dataconfig, context.state.curformdata)

            console.log(newdata,88888);

            context.state.dataconfig = newdata
        }
    },
    plugins:[
        new VuexPersistence({
            reducer: state => ({
                user: state.user, //这个就是存入localStorage的值
                app:state.app,
                menus:state.menus,
                userInfo:state.userInfo,
                userLevel:state.userLevel,
                order:state.order,
                media:state.media,
                kefu:state.kefu,
                integralOrder:state.integralOrder
            }),
            storage: window.localStorage
        }).plugin
    ],
    modules: {
        user,
        app,
        menus,
        userInfo,
        userLevel,
        order,
        media,
        goodSelect,
        moren,
        shopping,
        fresh,
        kefu,
        integralOrder
    }
})
